package demo1;

public class MyArray <T>{
    public Object[] array = new Object[5];

    public void set(int pos, T val){
        this.array[pos] = val;
    }

    public T get(int pos){
        return (T)array[pos];
    }
}
